package com.king.gkrpc.example;

import com.king.gkrpc.client.RpcClient;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Client {
    public static void main(String[] args) {
        RpcClient client = new RpcClient();
        CalcService service = client.getProxy(CalcService.class);
        int r1 = service.add(1,2);
        int r2 = service.minus(10,8);
        int x = r1 + r2;
        log.info("r1 {}, r2 {}",r1,r2);
    }
}
